package com.siyu.adapter.classadapter;

/**
 * @Author: siyu
 * @CreateTime: 2024-10-07
 * @Version: 1.0
 */
public class PowerAdapter extends AC220 implements DC5{
    public int output5V(){
        int adapterInput = super.outputAC220V();
        int adapterOutput = adapterInput / 44;
        System.out.println("使用 Adapter输入AC" + adapterInput + "V"+"输出DC"+adapterOutput +"V");
        return adapterOutput;
    }
}
